package org.springblade.common.constant;

import java.util.Arrays;
import java.util.List;

/**
 * 通用常量
 *
 * @author Chill
 */
public interface CommonConstant {

	/**
	 * sword 系统名
	 */
	String SWORD_NAME = "sword";

	/**
	 * saber 系统名
	 */
	String SABER_NAME = "saber";

	/**
	 * 顶级父节点id
	 */
	Long TOP_PARENT_ID = 0L;

	/**
	 * 顶级父节点名称
	 */
	String TOP_PARENT_NAME = "顶级";


	/**
	 * 默认密码
	 */
	String DEFAULT_PASSWORD = "123456";

	/**
	 * 呓语前缀，系统名
	 */
	String BABBLE_PREFIX = "babble";

	String BABBLE_USER_NAME = BABBLE_PREFIX + "-user";
	String BABBLE_BLOG_NAME = BABBLE_PREFIX + "-blog";
	String BABBLE_COMMENT_NAME = BABBLE_PREFIX + "-comment";
	String BABBLE_MANAGE_NAME = BABBLE_PREFIX + "-manage";
	String BABBLE_SUBITEM_NAME = BABBLE_PREFIX + "-subitem";

	/**
	 * 评论中留言板id ，"留言板"转字节19位
	 */
	String COMMENT_MESSAGE_BOARD = "2510710324881282699";
	/**
	 * 评论中违规词替换
	 */
	char SENSITIVE_WORD_REPLACE = '★';

	/**
	 * 上传图片的类型
	 */
	List<String> SUFFIXES = Arrays.asList("image/gif", "image/png", "image/jpeg");

	String EMAIL_TEMPLE = "htmlTemple.txt";

	/**
	 * 博客模块的交换机
	 */
	String RABBIT_BLOG_EXCHANGE = "blogExchange";
	String RABBID_BLOG_SAVE_KEY = "babble.blog.save";
	String RABBID_BLOG_SAVE_QUEUE = "blogsave";

}
